package cn.joeg.dp.decorator.passport;

import cn.joeg.dp.decorator.passport.old.SignService;
import cn.joeg.dp.decorator.passport.upgrade.SignForThirdService;

public class SignInTest {
    public static void main(String[] args) {

        //装饰器模式，原来的功能依旧对外开放。
        //新的功能，同样的也可以用
        SignForThirdService signForThirdService = new SignForThirdService(new SignService());
        signForThirdService.loginForQQ("xxx");

    }
}
